#include<stdio.h>

void R_LinkList1(LNode *L)
{
	LNode *p,*q;
	p = L -> next;
	L -> next = NULL;

	while (p != NULL)
	{
		q = p -> next;
		p -> next = L -> next;
		L -> next = p;
		p = q;

	}
}

void R_LinkList2(LNode *L)
{
	LNode *p,*r,*q;
	p = L -> next;
	r = p -> next;

	p -> next = NULL;

	while (r != NULL)
	{
		q = p;
		p -> next = q;
		p = r;
		r = p -> next;
	}
}

